package main.adapterPattern;

public class Wash implements ThreeElectricOutlet {
    String name;

    public Wash() {
        name = "黄河洗衣机";
    }

    public Wash(String name) {
        this.name = name;
    }

    @Override
    public void connectElectricCurrnent() {
        turnOn();
    }

    public void turnOn(){
        System.out.println(name + "开始洗衣物。");
    }
}